package com.example.hello;

import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.ui.Label;

public class Paragraph extends Label {

    public Paragraph(String paragraph) {
        setValue("<p>" + paragraph + "</p>");
        setContentMode(ContentMode.HTML);
    }

    public String getParagraph() {
        return getValue();
    }

    public void setParagraph(String paragraph) {
        setValue(paragraph);
    }

    public String toString() {
        return getValue();
    }

}